import {
	createApp
} from 'vue'
import App from './App.vue'
import './index.css'
import {
	router
} from './router.js'

import mitt from 'mitt'

const app = createApp(App).use(router)


// 方式1，全局总线，vue 入口文件 main.js 中挂载全局属性。
app.config.globalProperties.$mybus=mitt()
console.log('app.config.globalProperties=',app.config.globalProperties)


function http() {
	console.log('我是在main中调用接口的http');
	console.log(app)
	console.log(app.__proto__ == Object.prototype) //true
	console.log(app.constructor == Object) //true

	console.log(window,window.a)
}

http()

app.mount('#app')